package ssm.dao;

import ssm.pojo.User;

import java.sql.SQLException;

public interface UserDao {
    User foundUName(String name) throws SQLException;

    int addUser(User user) throws SQLException;

    User founduByCode(String code) throws SQLException;
    void updateUser(User user) throws SQLException;

    User loginUser(String username) throws SQLException;

}
